import 'package:flutter/material.dart';
import 'package:flutter_dwh5/pages/my/address/addressList.dart';
import 'package:flutter_dwh5/pages/my/address/noAddress.dart';

class Address extends StatefulWidget {
  @override
  State<Address> createState() => _AddressState();
}

class _AddressState extends State<Address> {
  bool addressFlag = false;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('管理地址'),
          elevation: 0,
        ),
        body: Container(child: addressFlag ? AddressList() : NoAddress()));
  }
}
